package com.supermarket.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.supermarket.user.domain.Coupon;
import com.supermarket.user.domain.dto.CouponDto;
import com.supermarket.user.mapper.CouponMapper;
import com.supermarket.user.service.CouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements CouponService {
    @Autowired
    private CouponMapper couponMapper;

    @Override
    public List<Coupon> getCouponList(CouponDto couponDto) {
        List<Coupon>coupons = couponMapper.getCouponList(couponDto);
        return coupons;
    }
}
